package com.ujiuye.cfg;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author: zwp
 * @version: 1.0
 * @create 2021-07-07 14:27
 */
@Configuration
public class MyWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        
        registry.addResourceHandler("/setmeal/**")//页面请求的路径
        .addResourceLocations("file:E:/upload/");//程序去代资源的位置
    }
}
